﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace CSharpDay10__Entity_Framwork_.Models
{
    public class Movie
    {
        //Can be called 'Id' or $className$Id and be the PK and identity
        //Otherwise needs the line below
        //[Key]
        public int MovieId { get; set; }
        public string Title { get; set; }
        public DateTime TimeCreated { get; set; }
        public FilmRating Rating { get; set; }
    }
    public enum FilmRating
    {
        G, 
        PG,
        PG13,
        R
    }
}